<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('Banner/index')}">轮播图列表</a></li>
        <li><a href="{:url('Banner/add')}">添加轮播图</a></li>
    </ul>
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th>ID</th>
            <th>图像</th>
            <th>链接</th>
            <th>创建时间</th>
            <th>更新时间</th>
            <th>操作</th>
        </tr>
        </thead>

        <tbody>
        <foreach name="list" item="vo">
            <tr>
                <td>{$vo.id}</td>
                <td><img src="/upload/{$vo.image}" style="width: 40px"></td>
                <td>{$vo.url}</td>
                <td>{$vo.create_time|date="Y-m-d H:i:s"}</td>
                <td>{$vo.update_time|date="Y-m-d H:i:s"}</td>
                <td>
                    <a class="btn btn-xs btn-primary" title="{:lang('EDIT')}" data-toggle="tooltip" href="{:url('Banner/edit')}?id={$vo.id}">
                        <i class="fa fa-edit fa-fw"></i>
                    </a>
                    <a href="{:url('Banner/delete',array('id'=>$vo['id']))}" class="js-ajax-delete btn btn-xs btn-danger" data-msg="确定删除它吗？">
                        <i class="fa fa-trash fa-fw"></i>
                    </a>
                </td>
            </tr>
        </foreach>
        </tbody>
    </table>

</div>
<div>
    <div class="pagination">{$list->render()}</div>
    <div>共有{$list->total()}条，每页显示{$list->listRows()}条，当前第{$list->currentPage()}页，共{$list->lastPage()}页。</div>
</div>
<script src="__STATIC__/js/admin.js?v={$_static_version}"></script>
</body>
</html>
